import request from '@/utils/request'

// 查询分销等级配置列表
export function listDistributionLevelConfig(query) {
  return request({
    url: '/system/distributionLevelConfig/list',
    method: 'get',
    params: query
  })
}

// 查询分销等级配置详细
export function getDistributionLevelConfig(id) {
  return request({
    url: '/system/distributionLevelConfig/' + id,
    method: 'get'
  })
}

// 新增分销等级配置
export function addDistributionLevelConfig(data) {
  return request({
    url: '/system/distributionLevelConfig',
    method: 'post',
    data: data
  })
}

// 修改分销等级配置
export function updateDistributionLevelConfig(data) {
  return request({
    url: '/system/distributionLevelConfig',
    method: 'put',
    data: data
  })
}

// 删除分销等级配置
export function delDistributionLevelConfig(id) {
  return request({
    url: '/system/distributionLevelConfig/' + id,
    method: 'delete'
  })
}
